/*    */ package com.qmsk.business.captcha;
/*    */ 
/*    */ import java.io.Serializable;
/*    */ 
/*    */ public class Captcha
/*    */   implements Serializable
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   private String value;
/*    */   private byte[] image;
/*    */ 
/*    */   public Captcha(String value, byte[] image)
/*    */   {
/* 45 */     this.value = value;
/* 46 */     this.image = image;
/*    */   }
/*    */ 
/*    */   public boolean check(String value)
/*    */   {
/* 56 */     return this.value.equalsIgnoreCase(value);
/*    */   }
/*    */ 
/*    */   public void clear()
/*    */   {
/* 63 */     this.image = null;
/*    */   }
/*    */ 
/*    */   public byte[] getImage()
/*    */   {
/* 72 */     return this.image;
/*    */   }
/*    */ 
/*    */   public String toString()
/*    */   {
/* 77 */     return this.value;
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.captcha.Captcha
 * JD-Core Version:    0.5.3
 */